package com.projManage.service.service;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ClassLoaderProxy;


/**
 * <a href="projManagedbLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class provides static methods for the
 * <code>com.projManage.service.service.projManagedbLocalService</code>
 * bean. The static methods of this class calls the same methods of the bean
 * instance. It's convenient to be able to just write one line to call a method
 * on a bean instead of writing a lookup call and a method call.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see com.projManage.service.service.projManagedbLocalService
 *
 */
public class projManagedbLocalServiceUtil {
    private static projManagedbLocalService _service;

    public static com.projManage.service.model.projManagedb addprojManagedb(
        com.projManage.service.model.projManagedb projManagedb)
        throws com.liferay.portal.SystemException {
        return getService().addprojManagedb(projManagedb);
    }

    public static com.projManage.service.model.projManagedb createprojManagedb(
        long id) {
        return getService().createprojManagedb(id);
    }

    public static void deleteprojManagedb(long id)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        getService().deleteprojManagedb(id);
    }

    public static void deleteprojManagedb(
        com.projManage.service.model.projManagedb projManagedb)
        throws com.liferay.portal.SystemException {
        getService().deleteprojManagedb(projManagedb);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery, start, end);
    }

    public static com.projManage.service.model.projManagedb getprojManagedb(
        long id)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService().getprojManagedb(id);
    }

    public static java.util.List<com.projManage.service.model.projManagedb> getprojManagedbs(
        int start, int end) throws com.liferay.portal.SystemException {
        return getService().getprojManagedbs(start, end);
    }

    public static int getprojManagedbsCount()
        throws com.liferay.portal.SystemException {
        return getService().getprojManagedbsCount();
    }

    public static com.projManage.service.model.projManagedb updateprojManagedb(
        com.projManage.service.model.projManagedb projManagedb)
        throws com.liferay.portal.SystemException {
        return getService().updateprojManagedb(projManagedb);
    }

    public static com.projManage.service.model.projManagedb updateprojManagedb(
        com.projManage.service.model.projManagedb projManagedb, boolean merge)
        throws com.liferay.portal.SystemException {
        return getService().updateprojManagedb(projManagedb, merge);
    }

    public static void clearService() {
        _service = null;
    }

    public static projManagedbLocalService getService() {
        if (_service == null) {
            Object obj = PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME,
                    projManagedbLocalServiceUtil.class.getName());
            ClassLoader portletClassLoader = (ClassLoader) PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME,
                    "portletClassLoader");

            ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(obj,
                    portletClassLoader);

            _service = new projManagedbLocalServiceClp(classLoaderProxy);

            ClpSerializer.setClassLoader(portletClassLoader);
        }

        return _service;
    }

    public void setService(projManagedbLocalService service) {
        _service = service;
    }
}
